﻿namespace AnyOffice.Model
{
    using System;

    public class EventData
    {
        protected DateTime _addTime = DateTime.Now;
        protected object _attachmentId;
        protected object _content;
        protected int _eventId = -1;
        protected string _subject = string.Empty;
        protected string _userId = string.Empty;
        protected int _viewCount;
        protected object _viewUser;

        public DateTime AddTime
        {
            get
            {
                return this._addTime;
            }
            set
            {
                this._addTime = value;
            }
        }

        public string AttachmentId
        {
            get
            {
                return (string) this._attachmentId;
            }
            set
            {
                this._attachmentId = value;
            }
        }

        public bool AttachmentIdIsNull
        {
            get
            {
                return (this._attachmentId == null);
            }
            set
            {
                if (value)
                {
                    this._attachmentId = null;
                }
            }
        }

        public string Content
        {
            get
            {
                return (string) this._content;
            }
            set
            {
                this._content = value;
            }
        }

        public bool ContentIsNull
        {
            get
            {
                return (this._content == null);
            }
            set
            {
                if (value)
                {
                    this._content = null;
                }
            }
        }

        public int EventId
        {
            get
            {
                return this._eventId;
            }
            set
            {
                this._eventId = value;
            }
        }

        public string Subject
        {
            get
            {
                return this._subject;
            }
            set
            {
                this._subject = value;
            }
        }

        public string UserId
        {
            get
            {
                return this._userId;
            }
            set
            {
                this._userId = value;
            }
        }

        public int ViewCount
        {
            get
            {
                return this._viewCount;
            }
            set
            {
                this._viewCount = value;
            }
        }

        public string ViewUser
        {
            get
            {
                return (string) this._viewUser;
            }
            set
            {
                this._viewUser = value;
            }
        }

        public bool ViewUserIsNull
        {
            get
            {
                return (this._viewUser == null);
            }
            set
            {
                if (value)
                {
                    this._viewUser = null;
                }
            }
        }
    }
}

